package com.hq.service.impl;

import com.hq.dao.Staff_workDao;
import com.hq.pojo.Staff_work;
import com.hq.service.Staff_workService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class Staff_workServiceImpl implements Staff_workService {
    @Resource
    Staff_workDao staff_workDao;

    public int  ins_staff_work(Staff_work staff_work) throws Exception{
        return staff_workDao.ins_staff_work(staff_work);
    };

    /*
     *根据客户id删一条客户数据
     * */
    public  int del_staff_work(Integer id) throws Exception{
        return staff_workDao.del_staff_work(id);
    };

    /*
     *根据客户id修改一条客户数据
     * */
    public  int upd_staff_work(Staff_work staff_work) throws Exception{
        return staff_workDao.upd_staff_work(staff_work);
    };

    /*
     *查询一条客户数据
     * */
    public  List<Staff_work> sel_staff_work(Integer staff_id) throws Exception{
        return staff_workDao.sel_staff_work(staff_id);
    };

    /*
     *查询所有客户数据
     * */
    public  List<Staff_work> staff_work_list_all() throws Exception{
        return staff_workDao.staff_work_list_all();
    };
}
